// src/router/index.ts
import { createRouter, createWebHistory } from 'vue-router'
import CoverPage from '@/pages/CoverPage.vue'
import LoginPage from '@/pages/LoginPage.vue'
import CalendarPage from '@/pages/CalendarPage.vue'
import RegisterPage from '@/pages/RegisterPage.vue'
import TaskPage from '@/pages/TaskPage.vue'

const routes = [
  { path: '/', name: 'CoverPage', component: CoverPage },
  { path: '/login', name: 'LoginPage', component: LoginPage },
  { path: '/calendar', name: 'Calendar', component: CalendarPage},
  { path: '/register', name: 'Register', component: RegisterPage},
  { path: '/task', name: 'Task', component: TaskPage}
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
